package com.googlecode.jnarwhal.input;

import com.googlecode.jnarwhal.event.Event;


/**
 * Called if the mouse has moved. Contains information about mouse x and y position and how far the mouse has moved
 * @author Chris
 *
 */
public class MouseMoveEvent extends Event {

	private int x, y, dx, dy;
	
	public MouseMoveEvent(int x, int y, int dx, int dy) {
		super(Event.Type.MOUSE_MOVE);
		this.x = x;
		this.y = y;
		this.dx = dx;
		this.dy = dy;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public int getDx() {
		return dx;
	}

	public int getDy() {
		return dy;
	}

}
